const express = require('express')
const router = express.Router()
const auth = require('./auth')
const user = require('./user')
const car = require('./car')
const order = require('./order')
const review = require('./review')
const admin = require('./admin')

// 用户认证相关路由
router.use('/auth', auth)
// 用户相关路由
router.use('/user', user)
// 车辆相关路由
router.use('/cars', car)
// 订单相关路由
router.use('/orders', order)
// 评价相关路由
router.use('/reviews', review)
// 管理员相关路由
router.use('/admin', admin)

module.exports = router